﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MainSite.Master" AutoEventWireup="true"
    CodeBehind="BuyForm.aspx.cs" Inherits="whatpricemyhouse.Buy.BuyForm" %>

<%@ Register Src="~/Controller/PlaceSelector.ascx" TagName="PlaceSelector" TagPrefix="uc1" %>
<%@ Register Src="~/Controller/PriceRangeSelector.ascx" TagName="PriceRangeSelector"
    TagPrefix="uc2" %>
<%@ Register Src="~/Controller/PropertyTypeSelector.ascx" TagName="PropertyTypeSelector"
    TagPrefix="uc3" %>
<%@ Register Src="~/Controller/WhenToBuySelector.ascx" TagName="WhenToBuySelector"
    TagPrefix="uc4" %>
<%@ Register Src="~/Controller/LoanTypeChecker.ascx" TagName="LoanTypeChecker" TagPrefix="uc5" %>
<%@ Register Src="~/Controller/HowFindUSSelector.ascx" TagName="HowFindUSSelector"
    TagPrefix="uc16" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">

        function mouseOver1(theObj) {
            theObj.src = "../images/button/send_now-w.png";
        }
        function mouseOut1(theObj) {
            theObj.src = "../images/button/send_now.png";
        }

    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="buyForm">
        <div class="setupTitle">
            <asp:Label ID="Label1" runat="server" Text="" CssClass="largeHeaderStep">Setup 2 :</asp:Label>
            <asp:Label ID="Label2" runat="server" Text=" " CssClass="largeHeaderTitle">Free Buyer Report</asp:Label>
            <br />
            <br />
        </div>
        <div class="message">
            You need the facts on the TRUE selling price (what most agents DON'T want you to
            know).<br /><br />
            Find out what house have sold for in the area you want to buy in. You will receive
            information on what comparable homes have sold for in that suburb.
        </div>
        <div class="theAreaHolder">
            <div class="theAreadHeader">
            </div>
            <div class="theArea">
                <div class="placeOfInsterest">
                    Place Of Interest:<br />
                    <uc1:PlaceSelector ID="placeSelector" runat="server" />
                    <br />
                    <br />
                </div>
                <div class="interestedInSurrounding">
                    <asp:CheckBox ID="interestSurroundCheckBox" runat="server" />
                    Interested in surrounding place as well<br />
                    <br />
                </div>
                <div class="priceRangeFrom">
                    Price range from:<br />
                    <uc2:PriceRangeSelector ID="priceRangeSelectorFrom" runat="server" />
                    <br />
                    <br />
                </div>
                <div class="priceRangeTo">
                    Price range to:<br />
                    <uc2:PriceRangeSelector ID="priceRangeSelectorTo" runat="server" />
                    <br />
                    <br />
                </div>
                <div class="propertyType">
                    Property type:<br />
                    <uc3:PropertyTypeSelector ID="propertyTypeSelector" runat="server" />
                    <br />
                    <br />
                </div>
                <div class="whenToBuy">
                    When to buy:<br />
                    <uc4:WhenToBuySelector ID="whenToBuySelector" runat="server" />
                    <br />
                    <br />
                </div>
            </div>
            <div class="theAreadFooter">
            </div>
        </div>
        <div class="chooseLoan">
            <div class="chooseLoanHeader">
            </div>
            <div class="theArea">
                Please tick one or more of the following to receive some free home loan info...
                <uc5:LoanTypeChecker ID="loanTypeChecker" runat="server" />
            </div>
            <div class="theAreadFooter">
            </div>
        </div>
        <div class="userDetail">
            <div class="userDetailHeader">
            </div>
            <div class="theArea">
                <div class="userName">
                    *Name:<br />
                    <asp:TextBox ID="UserNameTxt" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserNameTxt"
                        ErrorMessage="*"></asp:RequiredFieldValidator><br />
                    <br />
                </div>
                <div class="userEmail">
                    *Email:<br />
                    <asp:TextBox ID="UserEmailTxt" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="UserEmailTxt"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="UserEmailTxt"
                        ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><br />
                    <br />
                </div>
                <div class="userPhone">
                    *Phone:<br />
                    <asp:TextBox ID="UserPhoneTxt" runat="server" MaxLength="15"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="UserPhoneTxt"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <br />
                    <br />
                </div>
                                <div class="howFindUs">
                    How did you find US ? <br />
                    <uc16:howfindusselector ID="howFindUsSelector" runat="server" /><br /><br />
                </div>
            </div>
            <div class="theAreadFooter">
            </div>
        </div>
        <div class="message">
            Fields marked with an astersk * area required
        </div>
        <div class="buttonHolder">
            <%--<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/button/back_to_buyers.png"
                NavigateUrl="~/Default.aspx"></asp:HyperLink>--%>
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/button/send_now.png"
                OnClick="ImageButton1_Click" />
        </div>
    </div>
</asp:Content>
